package cn.fanqinghong.ymcc.feignClient;

import cn.fanqinghong.ymcc.domain.MessageEmail;
import cn.fanqinghong.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * FAN
 * 2022/7/25  19:58
 */
@FeignClient(value = "service-common",fallbackFactory = MessageEmailFallbackFactory.class)
@RequestMapping("/messageEmail")
public interface MessageEmailFeignClient {

    /**
     * 批量保存
     */
    @RequestMapping(value="/saveBatch",method= RequestMethod.POST)
    JSONResult saveBatch(@RequestBody List<MessageEmail> messageEmails);
}
